<html>

<head>
  <meta http-equiv="X-UA-Compatible" content="IE=8">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="keywords" content="广州市公安局荔湾区分局监督室">
  <meta name="description" content="主办单位：广州市公安局荔湾区分局监督室">
  <title><?php echo $lang->intro;?></title>
  <?php
  $themeRoot    = $webRoot . "theme/";

  $defaultTheme = $webRoot . 'theme/default/';
  css::import($defaultTheme . 'zh-cn.default.css');
  css::import($themeRoot . 'default/style.css');

  css::import($webRoot.'module/user/css/reset.css');
  css::import($webRoot.'module/user/css/base.css');
  css::import($webRoot.'module/user/css/index.css');
  echo html::favicon($webRoot . 'favicon.ico');
  if(isset($pageCSS)) css::internal($pageCSS);
  ?>
  <style>
    .detail {
      width: 950px;
    }

    .detail li {
      float: left;
      min-width: 45px;
      display: list-item;
      list-style-type: none;
      list-style-image: url(imgs/dot2.jpg);
      margin: 0px 20px 0px 5px;
    }

    .myselect {
      background-color: #fff;
      border-left: 1px solid #d9d9d9 ! important;
      border-right: 1px solid #d9d9d9 ! important;
      color: #0473d9;
    }
    .table-bordered td, .table-bordered th {
      border: 1px solid #989090 ! important;
    }
    .table>thead>tr>th{
      border: 1px solid #989090 ! important;
    }
  </style>

  <?php
  js::import($webRoot.'module/user/js/jquery.js');
  js::import($webRoot.'module/user/js/zui.min.js');
  js::import($webRoot.'module/user/js/zui.chart.min.js');
  ?>

</head>

<body>
<style>
  .mar_r10 {
    margin-right: 1%;
  }
  .common_all .mar_r10:nth-child(2n){margin-right: 0;}
  .common_content2 {
    padding: 10px;
  }
  ul{padding-left: 0 ! important;}
  .tab_ul li a{margin-right: 0;}
  #triggerModal{display: block;}
  a{color: inherit;}
  .an_nav ul li a{color: #fff ! important;}
</style>
<div class="an_container">
  <div class="an_header">

    <div class="an_top">
      <div class="an_top_link w_content f_all">
        <p>广州市公安局荔湾区分局监督室 </p>
        <ul class="list_line">
          <li class="top_icon1">
            <a href="javascript:window.external.AddFavorite('')">加入收藏</a>
          </li>

          <li class="top_icon2">
            <?php echo html::a($this->createLink('user', 'login'),'进入后台')?>
          </li>
          <li class="top_icon3">
            <a>个人中心</a>
          </li>
        </ul>
        <div class="clear"></div>
      </div>
      <div class="an_top_banner w_content" style="background: url(<?php echo $webRoot.$img->imgsrc; ?>) no-repeat top center;background-size: 100% 211px;"></div>
    </div>
    <div class="an_nav" style="background-color:#0575D9">
      <ul class="w_content">

        <li>
          <?php echo html::a($this->createLink('user', 'index'),'首页','',"class=current")?>
        </li>

        <li>
          <a href="<?php echo $this->createLink("user","punit")?>">警务监督考评</a>
        </li>

        <li>
          <a href="<?php echo $this->createLink("user","munit")?>">问责情况统计</a>
        </li>

        <div class="clear"></div>
      </ul>
    </div>
  </div>
  <!--an_header end -->
  <div class="an_content w_content">
    <div class="an_main w_content">
      <div class="common_all">
  <?php foreach($category as $key=>$val) :?>
      <?php if($key<4) :?>
        <div class="zxts f_l div_spacing mar_r10">
          <div class="common_title common_title<?php echo $key+2;?>">
            <a href="#" class="common_more common_more2" title="更多">+</a><b class="common_titleword common_titleword<?php echo $key+2;?>">
              <?php echo $val->mistake ?></b></div>
          <div class="common_content common_content2">
            <ul class="list list2">
        <?php foreach($val->process as $process) :?>
              <li>
                <?php echo html::a($this->createLink('process', 'particulars', "id={$process->id}"),$process->personnel.'违反'.$val->mistake.'规定扣'.$val->score.'分',"","data-toggle='modal' class='model'") ;?>
                <span style="float: right;font-size: 13px;"><?php echo $process->eventtime;?></span>
                <div style="clear: both"></div>
              </li>

        <?php endforeach ?>
            </ul>
          </div>
        </div>
    <?php endif ?>
  <?php endforeach ?>
        <div class="clear"></div>
      </div>
      <!--   common_all end  -->
    <div class="common_all">
      <div class="panel-heading text-center">
        <strong>
          <span style="position: relative">
          <a class="dropdown-toggle nian" style="cursor: pointer;" data-toggle="dropdown" data-years="<?php echo $time;?>"> <?php echo $time.'年';?></a>
          <ul class="dropdown-menu checknian">
            <?php foreach($years as $key=>$val):?>
              <?php if($key<=$nowyears):?>
                <li><a style="cursor: pointer;" data-years="<?php echo $key?>"><?php echo $val;?></a></li>
              <?php endif?>
            <?php endforeach?>
          </ul>
          </span>
          荔湾分局违规扣分统计表
        </strong>
      </div>
      <table class="table table-data table-bordered text-center table-fixedHeader">
        <thead>
        <tr class="text-center">
          <th>月份/分类</th>
          <?php foreach($bigcategory as $val) :?>
            <th><?php echo $val->mistake;?></th>
          <?php endforeach ?>
        </tr>
        </thead>
        <tbody>
        <tr>
          <td>一月</td>
          <?php foreach($data1 as $val1) :?>
            <td>
              <?php if($val1->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val1->id}&start={$val1->startDate}&end={$val1->endDate}"),$val1->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>二月</td>
          <?php foreach($data2 as $val2) :?>
            <td>
              <?php if($val2->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val2->id}&&start={$val2->startDate}&end={$val2->endDate}"),$val2->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>三月</td>
          <?php foreach($data3 as $val3) :?>
            <td>
              <?php if($val3->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val3->id}&start={$val3->startDate}&end={$val3->endDate}"),$val3->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>四月</td>
          <?php foreach($data4 as $val4) :?>
            <td>
              <?php if($val4->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val4->id}&start={$val4->startDate}&end={$val4->endDate}"),$val4->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>五月</td>
          <?php foreach($data5 as $val5) :?>
            <td>
              <?php if($val5->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val5->id}&start={$val5->startDate}&end={$val5->endDate}"),$val5->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>六月</td>
          <?php foreach($data6 as $val6) :?>
            <td>
              <?php if($val6->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val6->id}&start={$val6->startDate}&end={$val6->endDate}"),$val6->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>七月</td>
          <?php foreach($data7 as $val7) :?>
            <td>
              <?php if($val7->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val7->id}&start={$val7->startDate}&end={$val7->endDate}"),$val7->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>八月</td>
          <?php foreach($data8 as $val8) :?>
            <td>
              <?php if($val8->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val8->id}&start={$val8->startDate}&end={$val8->endDate}"),$val8->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>九月</td>
          <?php foreach($data9 as $val9) :?>
            <td>
              <?php if($val9->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val9->id}&start={$val9->startDate}&end={$val9->endDate}"),$val9->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>十月</td>
          <?php foreach($data10 as $val10) :?>
            <td>
              <?php if($val10->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val10->id}&start={$val10->startDate}&end={$val10->endDate}"),$val10->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>十一月</td>
          <?php foreach($data11 as $val11) :?>
            <td>
              <?php if($val11->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val11->id}&start={$val11->startDate}&end={$val11->endDate}"),$val11->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        <tr>
          <td>十二月</td>
          <?php foreach($data12 as $val12) :?>
            <td>
              <?php if($val12->sum) :?>
                <?php echo html::a($this->createLink('statistics', 'scategory', "pid={$val12->id}&start={$val12->startDate}&end={$val12->endDate}"),$val12->sum,"","data-toggle='modal' class='model'") ;?>
              <?php endif ?>
            </td>
          <?php endforeach ?>
        </tr>
        </tbody></table>
      </div>
      </div>

    </div>
    <!--   common_all end  -->
<!-- an_content end -->
<div class="an_footer f_all" id="link">

  <div class="foot_link">
    <ul class="w_content">
      <li>友情链接：</li>
      <?php foreach($links as $k=>$link) :?>
      <li>
        <a href="<?php echo $link->linkurl;?>" target="_blank"><?php echo $link->linkname;?></a>
       <?php if($k!=count($links)-1) :?> |<?php endif ?>
      </li>
        <?php endforeach ?>
    </ul>
  </div>
  <div class="foot_word w_content">
    <p>责任单位：荔湾区公安分局监督室&nbsp;&nbsp;&nbsp;&nbsp;技术支持：荔湾公安分局指挥中心科技科&nbsp;&nbsp;&nbsp;&nbsp;</p>
    <p>版权所有 Copyright @ 2017 广州市公安局荔湾区分局 All Rights Reserved&nbsp;&nbsp;&nbsp;&nbsp;</p>
  </div>
</div>
<!-- an_footer end -->
</div>
<!--   an_container end   -->
<script>
  $('.checknian').find('li').find('a').click(function(){
    $('.nian').text($(this).text());
    $('.nian').attr("data-years",$(this).attr("data-years"));
    var time = $(this).attr("data-years");
    var url = "/index.php?m=user&f=index&starttime="+time;
    window.location.href =url;
  })

</script>
</body>

</html>